package main

import (
	"gin-chat/models"
	"gin-chat/pkg"
	"gin-chat/router/api"
)

func init() {
	pkg.ConfInit()
	//初始化数据库
	models.InitDatabase()
	route := api.RouteInit()
	route.Run(":" + pkg.AppConf.Port) //指定端口
}

func main() {
	fmt.Println("Hello World!")

}
